<?php
/*
 * Theme Name: 960Base Theme SIMPLE
 * Theme URI: http://960basetheme.kiuz.it
 * Description: Wordpress theme based on 960 Grid System
 * Author: Domenico Monaco
 * Author URI: http://www.kiuz.it
 * Version: 1.0.0 BETA
 */
?>

</div><!-- end #container -->

<div class="clear"></div>

<?php $buzzr_cities = get_buzzr_cities(); ?>

<div class="grid_16" id="email_signup">
  <div class="email_footer">
  <p>Sign up for Daily Deal Newsletter </p>
  <?php $nonce = wp_create_nonce('newsletter_ajax'); ?> 
  	<input id="newsletter_email" name="newsletter_email" type="textbox" class="input_box newsletter_email" value="Email Address" /> 
  	<select id="newsletter_city" name="newsletter_city" class="select_box">
	    <option selected="selected">--Choose City--</option>
  		<?php
		      foreach($buzzr_cities as $city_val){
		      	if($city_val['name'] == get_city()){ ?>
		      	<option value="<?php echo $city_val['id'].'-'.$city_val['name']; ?>" selected="selected"><?php echo $city_val['name']; ?></option>
		      	<?php }else{ ?>
		      	<option value="<?php echo $city_val['id'].'-'.$city_val['name']; ?>"><?php echo $city_val['name']; ?></option>
		      	<?php }
		      } 
		?>
	 </select>
   <input id="newsletter_signup" name="newsletter_signup" type="submit" value="Sign Up" class="sign_up g-button" />
   <input id="ajax_nonce" name="ajax_nonce" type="hidden" value="<?php echo $nonce; ?>" />
   <div id="loader_footer" class="loader"><img src="<?php echo BUZZR_WP_URL.'/wp-content/pfiles/images/loader.gif'; ?>" /></div>
   <div class="newsletter_result" id="result_footer"></div>
   <div class="clear"></div>
	</div>
</div>

<div class="clear"></div>

<div class="container_16" id="buzzr_footer">

	<div id="content_bar" class="grid_4">
		<div id="content-region" class="content-widget">
			<?php	if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Footer Region 1') ) : ?><?php endif; ?> 
		</div><!-- END head-widget -->
	</div>

	<div id="content_bar" class="grid_4">
		<div id="content-region" class="content-widget">
			<?php	if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Footer Region 2') ) : ?><?php endif; ?> 
		</div><!-- END head-widget -->
	</div>

	<div id="content_bar" class="grid_8">
		<div id="content-region" class="content-widget">
			<?php	if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Footer Region 3') ) : ?><?php endif; ?> 
		</div><!-- END head-widget -->
	</div>
                                                                                 
	<div class="grid_16" id="site_info"><p><b><a target="_blank" href="http://enthrallmedia.com">An Enthrall Media Creation</a> &copy; <?php echo date('Y'); ?></b></div>
	<!--<div class="grid_16" id="citylist_footer">
	<p>
	  <?php /*
	  	foreach($buzzr_cities as $key => $city_val){
        $city_link = BUZZR_URL.'/localoffers/'.strtolower($city_val['name']);
     */ ?>
	 <!-- <a href="<?php /*echo $city_link; */?>"><?php /* echo $city_val['name'].' Deals'; */?></a>
	  <?php /* if($key != (count($buzzr_cities) - 1) ){ echo ' | '; } 
	  	}
	  */ ?> 
	<!-- </p></div> --> 
<!-- END footer -->


<?php wp_footer(); ?>
	<div class="clear"></div>
	</div> <!--  End container_16 -->
</div><!-- end #wrapper -->
</body>
</html>
